package com.beijing.cyou.service;

import com.beijing.cyou.model.User;
import com.beijing.cyou.model.UserInfo;
import com.beijing.cyou.model.UserOnline;
import com.beijing.cyou.params.UserParams;

public interface UserService {


	UserInfo getUserInfoById(Long userId);


	UserOnline getRedisUser(String token)throws Exception;


	User selectUser(UserParams condition)throws Exception;


	Long getUserIdByUserEmail(String userEmail);


	UserInfo retriveUserInfo(UserParams condition) throws Exception;


	void markupUserRelation(UserParams condition) ;


	void markupRedisUser(UserOnline userOnline)throws Exception ;


	void registRedisUser(UserOnline userOnline)throws Exception ;


	void makeSureUsedTokenCreamFlag()throws Exception;


	void makeSureAllTokenCreamFlag()throws Exception;


	void updateUsedMysqlUserToken()throws Exception;


	boolean updateUserInfo(UserParams condition);


	boolean updateUserToken(UserParams condition)throws Exception;


	boolean makeSureCreamFlag(UserParams condition);
	
}
